package cn.kk.pzhu.gpaweb.entity;

import ch.qos.logback.classic.pattern.DateConverter;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelTarget;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author KK
 * @CreateTime 2022-09-17
 */
@Data
@ExcelTarget("gpaExcel")
@AllArgsConstructor
@NoArgsConstructor
public class QueryVo {
    /**
     * id
     */
    @Excel(name = "学号", orderNum = "1")
    private String stuId;

    /**
     * 姓名
     */
    @Excel(name = "姓名", orderNum = "5")
    private String name;

    /**
     * 年级
     */
    @Excel(name = "年级", orderNum = "2")
    private String cla;

    /**
     * 专业
     */
    @Excel(name = "专业", orderNum = "3")
    private String major;

    /**
     * 绩点
     */
    @Excel(name = "绩点", orderNum = "6")
    private String credit;

    /**
     * 学年
     */
    @Excel(name = "学年", orderNum = "7")
    private String time;

    /**
     * 班级
     */
    @Excel(name = "班级", orderNum = "4")
    private String classes;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "查询时间", orderNum = "8",format = "yyyy-MM-dd HH:mm:ss")
    private Date create_time;
}
